package org.fuxia.im.common;


import javax.swing.DefaultListModel;


public class CommonListCellModel extends DefaultListModel<CommonListCellData> {

	private static final long serialVersionUID = -7012779577215015039L;

	private String displayField ;


	
	public void addRow(CommonListCellData row){
		addElement(row);
	}
	
	public void addRow(Object[][] props){
		addRow(new CommonListCellData(props,getDisplayField())) ;
	}

	public String getDisplayField() {
		return displayField;
	}

	public void setDisplayField(String displayField) {
		this.displayField = displayField;
	}


}
